package com.chinawayltd.ews.sample.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.chinawayltd.ews.sample.service.SynchroMainDataService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = { "首页数据同步任务定时器API" })
@RestController
public class SynchroMainDataController {

    @Autowired
    private SynchroMainDataService synchroMainDataService;
    @ApiOperation(value = "定时器")
    @RequestMapping(value = "/synchroMainDataService", method = { RequestMethod.GET })
    public void doJob() {
    	try {
			synchroMainDataService.synchroMainData();
		} catch (Exception e) {
			e.printStackTrace();
		}
    }
}
